﻿<!--
Majesty of Omega - The next evolution of macro management space strategy

Copyright 2007 André Claaßen

This file is protected by the terms and conditions of the
Microsoft Community License (Ms-CL 1.1), a copy of which should
have been distributed along with this software. If not,
you may find the license information at the following URL:

http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx
-->
<Page x:Class="Majesty_of_Omega.GUI.Pages.Game.SavePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Parts="clr-namespace:Majesty_of_Omega.GUI.Pages.Parts"
    xmlns:Majesty_of_Omega_GUI_Commands="clr-namespace:Majesty_of_Omega.GUI.Commands"
    Title="SavePage" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="1315.942" d:DesignHeight="764.536">

    <Grid x:Name="LayoutRoot" >
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.111*"/>
			<ColumnDefinition Width="0.375*"/>
			<ColumnDefinition Width="0.367*"/>
			<ColumnDefinition Width="0.147*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="0.104*"/>
			<RowDefinition Height="0.767*"/>
			<RowDefinition Height="0.129*"/>
		</Grid.RowDefinitions>
		<Rectangle Fill="#FF454444" Stroke="#FF000000" Opacity="0.50" Grid.RowSpan="3" Grid.ColumnSpan="4"/>
		<Grid Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Background="{x:Null}">
			<TextBlock Text="Save Game"  Style="{DynamicResource SubWindowTitleStyle}" />
			<Parts:SavedGamesGridPart x:Name="SavedGamesGrid" 
                                      GridType="SaveGame"
                                      Margin="60,80,60,0" DataContext="{Binding Source={StaticResource GameManagerDS}}" />
			<Border CornerRadius="5,5,5,5" BorderBrush="#FFFFFFFF" BorderThickness="2,2,2,2" x:Name="SaveGameBorder" Width="400" d:LayoutOverrides="GridBox" Visibility="Hidden" VerticalAlignment="Center" HorizontalAlignment="Center" Height="44">
				<Border.Background>
					<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
						<GradientStop Color="#FF9D9D9D" Offset="0"/>
						<GradientStop Color="#FF9D9D9D" Offset="1"/>
						<GradientStop Color="#FF141414" Offset="0.5"/>
					</LinearGradientBrush>
				</Border.Background>
				<TextBox Text="Saving Game" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Background="{x:Null}" Foreground="#FFFFFFFF" x:Name="SavingGameText"/>
			</Border>
		</Grid>
		<StackPanel Margin="8,8,8,8" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="2" x:Name="ButtonStack" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
			<Button Content="Save" Click="Save_Click" Margin="16,0,16,0" Style="{DynamicResource GlassButtonStyle}" Width="141" Height="36"/>
			<Button Command="Majesty_of_Omega_GUI_Commands:MainCommands.CancelSubFrameCommand" Content="Cancel" Margin="16,0,16,0" Style="{DynamicResource GlassButtonStyle}" Width="141" Height="36"/>
		</StackPanel>
	</Grid>
</Page>
